package com.ywy.chat;

import lombok.Data;
import org.springframework.stereotype.Component;

/**
 * 群聊配置常量
 *
 * @author ywy
 * @date 2021/12/27 11:31
 */
@Data
@Component
public class ChatConstants {
    // 消息类型

    /**
     * 心跳消息
     */
    public static final String MESS_TYPE_PING = "pingMessage";

    /**
     * 聊天消息
     */
    public static final String MESS_TYPE_CHAT = "chatMessage";

    /**
     * 聊天群id
     */
    public static final Integer GROUP_ID = 999;

    /**
     * 聊天群名称
     */
    public static final String GROUP_NAME = "eblog-group";

    /**
     * 聊天群历史消息key
     */
    public static final String GROUP_HISTORY_MSG_KEY = "group_history_msg_key";

    /**
     * 群成员key
     */
    public static final String ONLINE_MEMBERS_KEY = "online_members_key";
}
